<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path +"/";
%>
<html>
<head>
    <base href="<%=basePath%>">
    <title>激光线管理系统</title>
</head>
<body>

<!--主体内容编写-->
<div id="page-wrapper">
   <div class="col-md-12">
       <h2 class="h2" style="text-align: center">添加新闻</h2>
   </div>
            <form action="<%=basePath%>home/kggjjs_news_insert.action" method="post" class="form-horizontal" id="insertForm" enctype="multipart/form-data">
                <div class="form-group">
                    <label for="title_chi" class="control-label col-md-3">中文标题</label>
                    <div class="col-md-5">
                        <input type="text" class="form-control" name="title_chi" id="title_chi" placeholder="请输入中文名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="title_eng" class="control-label col-md-3">英文标题</label>
                    <div class="col-md-5">
                        <input type="text" class="form-control" name="title_eng" id="title_eng" placeholder="请输入英文名称">
                    </div>
                </div>
                <div class="form-group">
                    <label for="summary" class="control-label col-md-3">简介</label>
                    <div class="col-md-5">
                       <textarea class="form-control" name="summary" id="summary" placeholder="请输入简介"></textarea>
                    </div>
                </div>

                <div class="form-group">
                    <label for="name" class="control-label col-md-3">名字</label>
                    <div class="col-md-5">
                        <input class="form-control" name="name" id="name" placeholder="请输入名字">
                    </div>
                </div>

                <div class="form-group">
                    <label for="http" class="control-label col-md-3">链接地址</label>
                    <div class="col-md-5">
                        <input class="form-control" name="http" id="http" placeholder="请输入链接地址"></input>
                    </div>
                </div>

                <div class="form-group">
                    <label for="website" class="control-label col-md-3">网站名称</label>
                    <div class="col-md-5">
                        <input class="form-control" name="website" id="website" placeholder="请输入网站名称"></input>
                    </div>
                </div>

                <div class="form-group">
                    <label for="pub_user" class="control-label col-md-3">发布者</label>
                    <div class="col-md-5">
                        <input class="form-control" name="pub_user" id="pub_user" placeholder="请输入发布者"></input>
                    </div>
                </div>


                <label>上传图片：</label><input type="file" name="file"><br>
                <div class="form-group">
                    <div class="col-md-4 col-md-offset-6">
                        <button type="submit" class="btn btn-success btn-sm">增加</button>
                        <button type="reset" class="btn btn-danger btn-sm">重置</button>
                    </div>
                </div>
            </form>
    </div>
</div>


<script src="jquery/jquery.validate.min.js"></script>
<script src="jquery/additional-methods.min.js"></script>
<script src="jquery/jquery.metadata.js"></script>
<script src="jquery/Message_zh_CN.js"></script>
<script src="jquery/kggjjs_news_insert.js"></script>
</body>
</html>
